//
//  MBHudTool.m
//  BTRIP
//
//  Created by Rain on 15/11/16.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "MBHudTool.h"

@implementation MBHudTool

+(void)showHUD:(NSString *)text view:(UIView *)view hud:(MBProgressHUD *)hud
{
    [view addSubview:hud];
    hud.labelText = text;
    hud.dimBackground = YES;
    hud.square = YES;
    [hud show:YES];
}

+ (void)dissmissHUD:(MBProgressHUD *)hud view:(UIView *)view
{
    [hud removeFromSuperview];
    hud.dimBackground = NO;
    hud.square = NO;
    [hud show:NO];
}

@end
